var path = require('path')

module.exports = {
	entry: {
		app: path.resolve(__dirname, 'src/main.js'),
		jsx: path.resolve(__dirname, 'src/main.jsx'),
		cjsx: path.resolve(__dirname, 'src/main.cjsx'),
		react: path.resolve(__dirname, 'src/react.cjsx'),
		mui: path.resolve(__dirname, 'src/mui.cjsx')
	},
	output: {
		path: path.resolve(__dirname, 'build'),
		filename: '[name].js'
	},
	module: {
		loaders: [{
			test: /\.jsx$/,
			loader: 'babel',
			query: {
				presets: ['react', 'es2015']
			}		
		}, {
			test: /\.cjsx$/,
			loader: 'coffee!cjsx'
		}]
	}
}
